<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/29 0029
  Time: 下午 4:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSP中使用 Java Bean的测试</title>
</head>
<body>
<jsp:useBean id="test" class="bean.UserBean" />
<jsp:setProperty name="test" property="userName" value="Hello JSP"/>
<p>消息：
    <jsp:getProperty name="test" property="userName" />
</body>
</html>